<?php

require_once '../include/common.inc.php';
if (!checkAdmin()) {
   header("LOCATION:index.php");
  exit;
}
$menu_index = 2;
$page_title = 'TABLA';
$guide_message = 'Customer | Customer Information | Edit';


getMyParam('cid');
$sql="select * from cus_members where id=$cid";
$query = $db->query($sql);
$rs = $db->fetch_array($query);
//var_dump($rs['fax']);
$phone_ary=explode('-',$rs['phone']);
$phone1=$phone_ary[0];
$phone=$phone_ary[1];

$mobile_ary=explode('-',$rs['mobile']);
$mobile1=$mobile_ary[0];
$mobile=$mobile_ary[1];

$fax_ary=explode('-',$rs['fax']);
$fax1=$fax_ary[0];
$fax=$fax_ary[1];

if($rs['faq1']==1) $faq1="<input name='q1' type='checkbox' class='inputimage' id='q1' value='1' checked>";
else $faq1="<input name='q1' type='checkbox' class='inputimage' id='q1' value='1' >";

if($rs['faq2']==1) $faq2="<input name='q2' type='checkbox' class='inputimage' id='q2' value='1' checked>";
else $faq2="<input name='q2' type='checkbox' class='inputimage' id='q2' value='1' >";

include_once('menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_c_customer_edit');
require_once PrintEot('a_footer');

?>